package com.pmcc.core.entity.security;

import com.pmcc.core.entity.UUIDEntity;
import io.swagger.annotations.ApiModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * Created by tomas on 2018/4/9.
 */

@Entity
@Table(name = "sys_employee")
@ApiModel(value = "人员权限", description = "employee")
public class Employee extends UUIDEntity {

    @Column(name = "user_name", length = 50, unique = true)
    private String userName;

    @Column(name = "user_cname")
    private String userCname;//中文名

    @Column(name = "address", length = 50)
    private String address;

    @Column(name = "classes")
    private String classes;//banzhang1:甲班  bangzhang2:乙班  bangzhang3:丙班

    @Column(name = "photo")
    private String photo;

    @Column(name = "password")
    private String password;//密码

    @Column(name = "mobile")
    private String mobile;//手机号

    @Column(name = "last_login_time")
    private Date lastLoginTime;//上次登录时间

    @Column(name = "email")
    private String email;//EMAIL//

    @Column(name = "spareMailbox")
    private String spareMailbox;//备用邮箱

    @Column(name = "ENABLED")
    private String enabled; //0启用 1禁用


    @Column(name = "remark")
    private String remark;//备注

    @Column(name = "auth_reason")
    private String authReason;//审核原因

    @Column(name = "create_id")
    private String createId;//创建人ID

    @Column(name = "create_name")
    private String createName;//创建人名称

    @Column(name = "create_time")
    private Date createTime;//创建时间

    @Column(name = "del_flag")
    private Integer delFlag;//删除标记

    @Column(name= "sys_org_id")
    private String sysOrgId;

    @Column(name = "sys_role_id")
    private String sysRoleId;

    @Transient
    private  String organizationName;


    @Transient
    private List<String> ids;

    //新加字段
    @Column(name = "COUNTRY")
    private String country;

    @Column(name = "PROVINCE")
    private String province;//省

    @Column(name = "CITY")
    private String city;//市


    @Column(name = "signature")
    private String signature;//个人签名

    @Column(name = "title")
    private String title;

    @Column(name = "deviceid")
    private String deviceId; //设备ID

    public String getSpareMailbox() {
        return spareMailbox;
    }

    public void setSpareMailbox(String spareMailbox) {
        this.spareMailbox = spareMailbox;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public void setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
    }

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }

    public String getUserCname() {
        return userCname;
    }

    public void setUserCname(String userCname) {
        this.userCname = userCname;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSysOrgId() {
        return sysOrgId;
    }

    public void setSysOrgId(String sysOrgId) {
        this.sysOrgId = sysOrgId;
    }

    public String getSysRoleId() {
        return sysRoleId;
    }

    public void setSysRoleId(String sysRoleId) {
        this.sysRoleId = sysRoleId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }



    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAuthReason() {
        return authReason;
    }

    public void setAuthReason(String authReason) {
        this.authReason = authReason;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    public List<String> getIds() {
        return ids;
    }

    public void setIds(List<String> ids) {
        this.ids = ids;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }
}